import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Count from '@/components/Count'

Vue.use(Router)

export default new Router({
  // 如果是history模式会去掉路由路径上的#.但是在nginx上刷新会有问题
  // mode: 'history',
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/count',
      component: Count
    }
  ]
})
